package com.ht.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ht.entity.ColumnsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 
 * 
 * @author ht
 * @email ht035200@163.com
 * @date 2021-09-24 16:30:53
 */
@Mapper
public interface ColumnsMapper extends BaseMapper<ColumnsEntity> {
    @Select("select * from information_schema.COLUMNS where TABLE_NAME=#{tableName} and table_schema = (select database())")
    List<ColumnsEntity> selectMaps(String tableName);
}
